//


#import "NT_FeedBackViewController.h"
#import "NT_QuestionnaireView.h"

@interface NT_FeedBackViewController ()

@end

@implementation NT_FeedBackViewController

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    PostNotifition(@"Hidden");
}
- (void)viewWillDisappear:(BOOL)animated {
    [super viewWillDisappear:animated];
    PostNotifition(@"Appear");
}
- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self setnavBatTitle:@"问卷调查"];
    [self creatView];
}

- (void)creatView {
    NT_QuestionnaireView *vc = [[NT_QuestionnaireView alloc]initWithFrame:CGRectMake(0, 0, kMainScreenWidth, kRelativeHeight(300))];
    [self.view addSubview:vc];
    
    UIButton * btn = [[UIButton alloc] initWithFrame:CGRectMake(kRelativeWidth(78), CGRectGetMaxY(vc.frame) + kRelativeHeight(202), kRelativeWidth(220), kRelativeHeight(40))];
    [btn setTitleColor:rgba(255, 255, 255, 1) forState:UIControlStateNormal];
    [btn setBackgroundColor:rgba(255, 100, 0, 1)];
    [btn setTitle:@"Submit" forState:UIControlStateNormal];
    btn.titleLabel.font = FontPFRegular(kRelativeWidth(16));
    btn.layer.cornerRadius = kRelativeWidth(18);
    [btn addTarget:self action:@selector(btndidClick) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:btn];
}

//MARK:保存数据
- (void)btndidClick {
    [self.navigationController popViewControllerAnimated:YES];
}
/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
